<%@page import="com.shsh.safemanage.model.User"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.UserDao"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<%
{
UserDao theUserDao = DaoCreator.createUserDao();
String manageGroupIDStr = request.getParameter(Constants.REQUEST_PARAMETER_MANAGEGROUP_ID);
Long manageGroupID = 0L;
try {
	manageGroupID = new Long(manageGroupIDStr);
} catch (Exception e) {
}

User theUser = (User) session.getAttribute(Constants.SESSION_USER);

List<User> userList = theUserDao.getManageGroupMappingUserList(manageGroupID, theUser.getDepartment1ID());
%>
<select id="userID">
<%
for (User user : userList) {
%>
	<option value="<%=user.getId()%>"><%=user.getName()%></option>
<%
}
%>
</select>
<%
}
%>